﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _3.ConpareFloatingPointNumbers
{
    class Program
    {
        static void Main()
        {
            Console.WriteLine("Enter your first number:");
            decimal a = decimal.Parse(Console.ReadLine());
            Console.WriteLine("Enter your second number:");
            decimal b = decimal.Parse(Console.ReadLine());
            decimal precision = 0.000001M;
            bool compare = (((a < b) & (b - a) < precision) || (a == b) || ((a > b) & (a - b) < precision));
            Console.WriteLine(compare);
        }
    }
}
